package com.zx.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Message {
	private String user;
	private String title;
	private String content;
	private Date date;
	private static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public Message() {
	}
	
	public Message(String user, String title, String content, Date date) {
		super();
		this.user = user;
		this.title = title;
		this.content = content;
		this.date = date;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getDate() {
		return date;
	}
	public String getDateStr(){
		return format.format(date);
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
}
